<template>
          <h3>key属性添加到v-for中</h3>
          <p v-for="(item,index) in names" :key="index">{{ item }}</p>
</template>
<script>
export default {
          data() {
                    return {
                              names:["百战程序员","IT"]
                    }
          }
}
</script>